﻿<%@ Control Language="C#" ClassName="DrugDispoFields" %>
<asp:FormView ID="FormView1" runat="server">
    <ItemTemplate>
        <table border="0" cellpadding="3" cellspacing="1" style="width: 600px">
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataDrugId" runat="server" Text="Drug Id:" AssociatedControlID="dataDrugId" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataDrugId" Text='<%# Bind("DrugId") %>' MaxLength="20"
                        CssClass="text-input large-input"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataDrugId"
                            runat="server" Display="Dynamic" ControlToValidate="dataDrugId" ErrorMessage="Required"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataDrugName" runat="server" Text="Drug Name:" AssociatedControlID="dataDrugName" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataDrugName" Text='<%# Bind("DrugName") %>' MaxLength="250"
                        CssClass="text-input large-input"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataDrugName"
                            runat="server" Display="Dynamic" ControlToValidate="dataDrugName" CssClass="text-input large-input"
                            ErrorMessage="Required"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataGenericName" runat="server" Text="Generic Name:" AssociatedControlID="dataGenericName" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataGenericName" Text='<%# Bind("GenericName") %>'
                        CssClass="text-input large-input" MaxLength="250"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataSpecification" runat="server" Text="Specification:" AssociatedControlID="dataSpecification" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataSpecification" Text='<%# Bind("Specification") %>'
                        CssClass="text-input large-input" MaxLength="250"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataUnit" runat="server" Text="Unit:" AssociatedControlID="dataUnit" />
                </td>
                <td>
                    <data:EntityDropDownList runat="server" ID="dataUnit" DataSourceID="UnitUnitTableDataSource"
                        DataTextField="Unit" DataValueField="Unit" SelectedValue='<%# Bind("Unit") %>'
                        AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required"
                        CssClass="text-input large-input" />
                    <data:UnitTableDataSource ID="UnitUnitTableDataSource" runat="server" SelectMethod="GetAll" />
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataIsControlDrug" runat="server" Text="Is Control Drug:" AssociatedControlID="dataIsControlDrug" />
                </td>
                <td>
                    <asp:RadioButtonList runat="server" ID="dataIsControlDrug" SelectedValue='<%# Bind("IsControlDrug") %>'
                        RepeatDirection="Horizontal">
                        <asp:ListItem Value="True" Text="Yes" Selected="True"></asp:ListItem>
                        <asp:ListItem Value="False" Text="No"></asp:ListItem>
                        <asp:ListItem Value="" Text="Pick ..." Enabled="False"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataCostPrice" runat="server" Text="Cost Price:" AssociatedControlID="dataCostPrice" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataCostPrice" Text='<%# Bind("CostPrice") %>' CssClass="text-input large-input"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="ReqVal_dataCostPrice" runat="server" Display="Dynamic"
                        ControlToValidate="dataCostPrice" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator
                            ID="RangeVal_dataCostPrice" runat="server" Display="Dynamic" ControlToValidate="dataCostPrice"
                            ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999"
                            Type="Double"></asp:RangeValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataSellPrice" runat="server" Text="Sell Price:" AssociatedControlID="dataSellPrice" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataSellPrice" Text='<%# Bind("SellPrice") %>' CssClass="text-input large-input"></asp:TextBox><asp:RequiredFieldValidator
                        ID="ReqVal_dataSellPrice" runat="server" Display="Dynamic" ControlToValidate="dataSellPrice"
                        ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataSellPrice"
                            runat="server" Display="Dynamic" ControlToValidate="dataSellPrice" ErrorMessage="Invalid value"
                            MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataPrecaution" runat="server" Text="Precaution:" AssociatedControlID="dataPrecaution" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataPrecaution" Text='<%# Bind("Precaution") %>'
                        MaxLength="500" TextMode="MultiLine" CssClass="text-input large-input"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataUseGuide" runat="server" Text="Administration:" AssociatedControlID="dataUseGuide" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataUseGuide" Text='<%# Bind("UseGuide") %>' MaxLength="500"
                        TextMode="MultiLine" CssClass="text-input large-input"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataMarkUpType" runat="server" Text="Mark Up Type:" AssociatedControlID="dataMarkUpType" />
                </td>
                <td>
                    <data:EntityDropDownList runat="server" ID="dataMarkUpType" DataSourceID="MarkUpTypeMarkUpTypeDataSource"
                        DataTextField="MarkUpName" DataValueField="MarkUpType" SelectedValue='<%# Bind("MarkUpType") %>'
                        AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" CssClass="text-input large-input" />
                    <data:MarkUpTypeDataSource ID="MarkUpTypeMarkUpTypeDataSource" runat="server" SelectMethod="GetAll" />
                    <asp:RequiredFieldValidator ID="RequiredMarkUpType" runat="server" Display="Dynamic"
                        ControlToValidate="dataMarkUpType" ErrorMessage="Required"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataPackage" runat="server" Text="Package:" AssociatedControlID="dataPackage" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataPackage" Text='<%# Bind("Package") %>' MaxLength="50"
                        CssClass="text-input large-input"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataClassificationId" runat="server" Text="Classification Id:"
                        AssociatedControlID="dataClassificationId" />
                </td>
                <td>
                    <data:EntityDropDownList runat="server" ID="dataClassificationId" DataSourceID="ClassificationIdClassificationDataSource"
                        DataTextField="ClassificationName" DataValueField="ClassificationId" SelectedValue='<%# Bind("ClassificationId") %>'
                        AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" CssClass="text-input large-input" />
                    <data:ClassificationDataSource ID="ClassificationIdClassificationDataSource" runat="server"
                        SelectMethod="GetAll" />
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataGroupId" runat="server" Text="Group Id:" AssociatedControlID="dataGroupId" />
                </td>
                <td>
                    <data:EntityDropDownList runat="server" ID="dataGroupId" DataSourceID="GroupIdGroupDataSource"
                        DataTextField="GroupName" DataValueField="GroupId" SelectedValue='<%# Bind("GroupId") %>'
                        AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" CssClass="text-input large-input" />
                    <data:GroupDataSource ID="GroupIdGroupDataSource" runat="server" SelectMethod="GetAll" />
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataShelf" runat="server" Text="Shelf:" AssociatedControlID="dataShelf" />
                </td>
                <td>
                    <data:EntityDropDownList runat="server" ID="dataShelf" DataSourceID="ShelfShelfDataSource"
                        DataTextField="Shelf" DataValueField="Shelf" SelectedValue='<%# Bind("Shelf") %>'
                        AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" CssClass="text-input large-input" />
                    <data:ShelfDataSource ID="ShelfShelfDataSource" runat="server" SelectMethod="GetAll" />
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataMinStock" runat="server" Text="Min Stock:" AssociatedControlID="dataMinStock" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataMinStock" Text='<%# Bind("MinStock") %>' CssClass="text-input large-input"></asp:TextBox><asp:RangeValidator
                        ID="RangeVal_dataMinStock" runat="server" Display="Dynamic" ControlToValidate="dataMinStock"
                        ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648"
                        Type="Integer"></asp:RangeValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataMaxStock" runat="server" Text="Max Stock:" AssociatedControlID="dataMaxStock" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataMaxStock" Text='<%# Bind("MaxStock") %>' CssClass="text-input large-input"></asp:TextBox><asp:RangeValidator
                        ID="RangeVal_dataMaxStock" runat="server" Display="Dynamic" ControlToValidate="dataMaxStock"
                        ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648"
                        Type="Integer"></asp:RangeValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataRemark" runat="server" Text="Remark:" AssociatedControlID="dataRemark" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataRemark" Text='<%# Bind("Remark") %>' MaxLength="250"
                        CssClass="text-input large-input"></asp:TextBox>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:FormView>
